package com.demo.springboothexadecimalconversion.controller;

import com.alibaba.fastjson.JSON;
import com.demo.springboothexadecimalconversion.hextobyte.HexToLong;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Hanson
 * @date 2022/11/15 15:47
 */
@RestController
public class TestController {

    @Resource
    private HexToLong hexToLong;

    @PostMapping("/send")
    public String send(String str) {
        hexToLong.HexDecode(str);
        return  "发送成功";
    }
}
